
package com.intretech.umsin.system.vo;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.intretech.umsin.common.entity.Assignment;
import com.intretech.umsin.common.excel.converter.LocalDateTimeConverter;

/**
* @version V1.0
* 系统访问记录:sys_logininfor 对应的VO模型类.
* @ClassName: SysLogininforVo
* @Description: 系统访问记录:sys_logininfor 对应的VO模型类.
* @author: 李启联
* @date:   2022-8-16 16:25:07
* @Copyright: Copyright (c) 2022
*/
@ApiModel("系统访问记录")
@ExcelIgnoreUnannotated
public class SysLogininforVo implements Assignment, Serializable {

    // 访问ID
    @ApiModelProperty(value = "访问ID" ,dataType="bigint(19)" ,required= true)
    @ExcelProperty(value = "访问ID")
    private Long id;

    // 用户账号
    @ApiModelProperty(value = "用户账号" ,dataType="varchar(50)" ,required= false)
    @ExcelProperty(value = "用户账号")
    private String userName;

    // 登录IP地址
    @ApiModelProperty(value = "登录IP地址" ,dataType="varchar(128)" ,required= false)
    @ExcelProperty(value = "登录IP地址")
    private String ipaddr;

    // 登录状态（0成功 1失败）
    @ApiModelProperty(value = "登录状态（0成功 1失败）" ,dataType="char(1)" ,required= false)
    @ExcelProperty(value = "登录状态（0成功 1失败）")
    private String status;

    // 提示信息
    @ApiModelProperty(value = "提示信息" ,dataType="varchar(255)" ,required= false)
    @ExcelProperty(value = "提示信息")
    private String msg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "访问时间" ,dataType="datetime()" ,required= false)
    @ExcelProperty(value = "访问时间",converter = LocalDateTimeConverter.class)
    private java.time.LocalDateTime accessTime;

    // 版本号
    @ApiModelProperty(value = "版本号" ,dataType="int(10)" ,required= false)
    @ExcelProperty(value = "版本号")
    private Integer version;

    // 租户ID
    @ApiModelProperty(value = "租户ID" ,dataType="varchar(128)" ,required= false)
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    // 创建人
    @ApiModelProperty(value = "创建人" ,dataType="varchar(64)" ,required= false)
    @ExcelProperty(value = "创建人")
    private String creator;

    // 修改人
    @ApiModelProperty(value = "修改人" ,dataType="varchar(64)" ,required= false)
    @ExcelProperty(value = "修改人")
    private String modifier;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间" ,dataType="datetime()" ,required= false)
    @ExcelProperty(value = "创建时间",converter = LocalDateTimeConverter.class)
    private java.time.LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间" ,dataType="datetime()" ,required= false)
    @ExcelProperty(value = "修改时间",converter = LocalDateTimeConverter.class)
    private java.time.LocalDateTime modifyTime;

    public Long getId(){
    return this.id;
    }

    public void setId(Long id){
    this.id = id;
    }
    public String getUserName(){
    return this.userName;
    }

    public void setUserName(String userName){
    this.userName = userName;
    }
    public String getIpaddr(){
    return this.ipaddr;
    }

    public void setIpaddr(String ipaddr){
    this.ipaddr = ipaddr;
    }
    public String getStatus(){
    return this.status;
    }

    public void setStatus(String status){
    this.status = status;
    }
    public String getMsg(){
    return this.msg;
    }

    public void setMsg(String msg){
    this.msg = msg;
    }
    public java.time.LocalDateTime getAccessTime(){
    return this.accessTime;
    }

    public void setAccessTime(java.time.LocalDateTime accessTime){
    this.accessTime = accessTime;
    }
    public Integer getVersion(){
    return this.version;
    }

    public void setVersion(Integer version){
    this.version = version;
    }
    public String getTenantId(){
    return this.tenantId;
    }

    public void setTenantId(String tenantId){
    this.tenantId = tenantId;
    }
    public String getCreator(){
    return this.creator;
    }

    public void setCreator(String creator){
    this.creator = creator;
    }
    public String getModifier(){
    return this.modifier;
    }

    public void setModifier(String modifier){
    this.modifier = modifier;
    }
    public java.time.LocalDateTime getCreateTime(){
    return this.createTime;
    }

    public void setCreateTime(java.time.LocalDateTime createTime){
    this.createTime = createTime;
    }
    public java.time.LocalDateTime getModifyTime(){
    return this.modifyTime;
    }

    public void setModifyTime(java.time.LocalDateTime modifyTime){
    this.modifyTime = modifyTime;
    }

    public SysLogininforVo(){
    }

    @Override
    public String toString(){
        return " SysLogininforVo ["
             +" id = " +id +" ,"
             +" userName = " +userName +" ,"
             +" ipaddr = " +ipaddr +" ,"
             +" status = " +status +" ,"
             +" msg = " +msg +" ,"
             +" accessTime = " +accessTime +" ,"
             +" version = " +version +" ,"
             +" tenantId = " +tenantId +" ,"
             +" creator = " +creator +" ,"
             +" modifier = " +modifier +" ,"
             +" createTime = " +createTime +" ,"
             +" modifyTime = " +modifyTime
        +" ]";
    }

}